﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace F2S.LINQ2LinkedIn.Model
{
    [DebuggerDisplay("Url={Url}, Headers.Total=[{Headers.Total}]")]
    [XmlRoot("api-standard-profile-request")]
    [XmlInclude(typeof(HttpHeader))]
    [XmlInclude(typeof(HttpHeaderCollection))]
    public class ApiStandardProfileRequest
    {
        [XmlElement(ElementName = "url")]
        public string Url { get; set; }

        [XmlElement(ElementName = "headers")]
        public HttpHeaderCollection Headers { get; set; }

        public override string ToString()
        {
            return string.Format("Url={0}, Headers.Total={1}", Url, Headers == null ? "null" : Headers.Total.ToString());
        }
    }
}
